<ui:composition template="/admin/templates/ui2.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite/primefaces"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:archer="http://java.sun.com/jsf/archer"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<ui:define name="content">
		<link rel="stylesheet" type="text/css" href="/include/css/jscover.css" />

		<div class="entry">
			<p:toolbar styleClass="admin-nav-toolbar">
				<p:toolbarGroup>
					<h:outputLabel value="#{commonMsg.currentPositionLabel} 偷摸打卡"></h:outputLabel>
				</p:toolbarGroup>
			</p:toolbar>
			<p:spacer></p:spacer>
			<h:form id="form" enctype="multipart/form-data">
				<p:panel id="filters">
					<h:panelGrid columns="2" columnClasses="col1,col2" id="panel">
						
						
						<h:outputLabel value="怎么打："></h:outputLabel>
						<h:selectOneMenu label="怎么打" value="#{manualSignHome.type}">
							<f:selectItem itemValue="" itemLabel="请选择"/>
							<f:selectItem itemValue="app" itemLabel="app按钮"/>
							<f:selectItem itemValue="code" itemLabel="二维码"/>
							<f:ajax execute="@this" render="panel"></f:ajax>
						</h:selectOneMenu>
						
						<h:outputLabel value="谁要打卡："></h:outputLabel>
						<h:selectOneMenu label="谁打卡" value="#{manualSignHome.userId}">
							<f:selectItem itemValue="" itemLabel="请选择"/>
							<f:selectItem itemValue="114c2a59-f22d-42cb-aedc-2e0ffbcf22bf" itemLabel="summer"/>
							<f:selectItem itemValue="e69533f7-1727-414a-934a-7838e4e81234" itemLabel="lhing"/>
						</h:selectOneMenu>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel value="token："></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:inputText label="token：" id="token" value="#{manualSignHome.token}"></h:inputText>
							<h:outputLabel value="没有token？去登录"></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel value="address："></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel label="address：" id="address" value="#{manualSignHome.address}"></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel value="经度："></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel label="经度：" id="lon" value="#{manualSignHome.lon}"></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel value="纬度："></h:outputLabel>
						</h:panelGroup>
						<h:panelGroup rendered="#{manualSignHome.type == 'app'}">
							<h:outputLabel label="纬度：" id="lat" value="#{manualSignHome.lat}"></h:outputLabel>
						</h:panelGroup>
					
						<h:outputLabel value="操作："></h:outputLabel>

						<ui:fragment>
							<p:commandButton value="打！" ajax="false" id="import"
								action="#{manualSignHome.manualSign}" type="submit"></p:commandButton>
						</ui:fragment>
					</h:panelGrid>
				</p:panel>
			</h:form>
		</div>
	</ui:define>
</ui:composition>

